package com.wky;



import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;


import java.util.concurrent.ThreadLocalRandom;

@RestController
public class HelloController {
    @GetMapping("/random")
    public String random(){
        ThreadLocalRandom tlr = ThreadLocalRandom.current();
        String random = String.valueOf(tlr.nextInt(1,1000));
        return "random:" + random;
    }

    @GetMapping("/square/4")
    public String square(){
       return "16";
    }
}
